package com.lingnan.feign;

import com.lingnan.entity.dto.NewMessageRequest;
import com.lingnan.entity.vo.Result;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "notification-service", path = "/notification")
public interface NotificationFeignClient {
    @PostMapping("/new-message")
    public Result<Void> sendNewMessageNotification(@RequestBody @Valid NewMessageRequest request);
}
